﻿<div class="left_col no_sidebar_center_all">

<!--            .............................................Main content area.......................................  -->
<?php
  // initiate all variables by calling the_post()
  the_post();
?>
<div class="post" id="post">


<!--   .......Title and author information area....... -->
<div class="title">

<div class="candidate inline_block" style="float:right">
	<script type="text/javascript">
	postShareCountButton();
	</script>
</div>

		<a href="javascript:location.reload(true);">
			<h1><?php the_title(); ?></h1>
		</a>
		<div class="info">
			<h5>Written by: <?php
   // echo "<a href='"+ get_author_posts_url( get_the_author_meta( 'ID' ) ); the_author_meta('display_name') +"'>seoul</a>";
			  $href= get_author_posts_url( get_the_author_meta( 'ID' ) );
			  $title="view all post written by " . get_the_author_meta('display_name');
			  $anchorBody= get_the_author_meta('display_name');
			  $outputDataAsHTML->outputAnchorTag($href,$title,$anchorBody);
			?>
			</h5>

			<h5>
			<?php
				// 06:21:26, 22-December-2011 = H:i:s j-F-Y
				//echo "Time: ". get_the_date("H:i a, j F, Y"). " [BST] " ;
				
				echo "Time: ". get_local_timeStamp(get_the_date("Y-m-d H:i:s"),'h:i a, j F, Y');
			?>
			</h5>
			
		 </div> <!-- // info div ends here -->
</div>

<div class="clear"></div>

<!--            .............................................Post data content area.......................................  -->

<div class="mainContentSinglePost" id="mainContentSinglePost">
	<?php
	  the_content();
	?>
</div>

<!--            .............................................Related post+Category+Share this post: area.......................................  -->

<h5 class="sectionHeader">সাইট লাইব্রেরী থেকে আরো কিছু পোস্ট</h5>
<div class="relatedPost">
		<!-- <strong> You maybe interested in these posts: </strong> -->
		<ul class="elementUL">
		<?php
			  //require_once '../customPhpScript/RelatedPost.php';
			  $multipleTags= get_tags();
			  $relatedPost=new RelatedPost( get_the_category($post->ID), $multipleTags);
			  $relatedPost->execute();
			  $i=0;
			  foreach ($relatedPost->resultList as $value) {
					++$i; if( $i>7) break;
					echo '<li>' ;
					$outputDataAsHTML->outputAnchorTag($value['href'], $value['title'], $value['title']);
					echo '</li>';
			  }
		?>
		<!--
				<li><a href="http://www.example.com" title="example">post 1</a></li>
				<li><a href="http://www.example.com" title="example">post 1</a></li>
				<li><a href="http://www.example.com" title="example">post 1</a></li>
		-->
		</ul>
		<?PHP if( count( get_tags()) > 0 ) { ?>
		<strong>Post tags: </strong>
		<ul class="elementUL">
			<?php
				the_category(', ');
				the_tags(', ');
				wp_link_pages();
			?>
		</ul>
		<?PHP } ?>
</div> <!--  # related post and category div ends here -->

<div class="clear"></div>

<?php comments_template(); ?>

</div> <!--  post content div ends here -->
</div>  <!-- left_col div ends here -->